<link href="images/admin/skin.css" rel="stylesheet" type="text/css" />
<link href="css/admin_css/form.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/admin/mail_leftbg.gif"><img src="images/admin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/admin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">上传图片</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/admin/mail_rightbg.gif"><img src="images/admin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>



  <tr>
    <td valign="middle" background="images/admin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    <div class="form">
      <?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'category-form',
			'enableAjaxValidation'=>false,
			'htmlOptions'=>array('enctype'=>'multipart/form-data'),
	)); ?>


	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
	
	<div class="row">
		<?php echo $form->labelEx($model,'英文标题'); ?>
		<?php echo $form->textField($model,'ENTitle',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'ENTitle'); ?>
	</div>	
	
	<div class="row">
		<?php echo $form->labelEx($model,'中文标题'); ?>
		<?php echo $form->textField($model,'ZHTitle',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'ZHTitle'); ?>
	</div>	
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'链接　　'); ?>
		<?php echo $form->textField($model,'Link',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'Link'); ?>
	</div>	
	
	<div class="row">
		<?php echo $form->labelEx($model,'序号　　'); ?>
		<?php echo $form->textField($model,'Sorts',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'Sorts'); ?>
	</div>	
	
	<div class="row">
		<?php echo $form->labelEx($model,'图片路径'); ?>
		<?php echo $form->fileField($model,'PicPath',array('size'=>50)); ?>
		<?php echo $form->error($model,'PicPath'); ?>
	</div>
	<?php if(isset($model->PicPath) && !empty($model->PicPath)){?>
	<div class="row">
		<?php echo $form->labelEx($model,'上传图片'); ?>
		<a href="#"><img src="<?php echo $model->PicPath;?>" width="90" height="60"/></a>
		<?php echo $form->hiddenField($model,'PicPath',array('size'=>50));?>
	</div>	
	<?php }?>
		
		
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Creat' : 'Save'); ?>
	</div>		
	<?php $this->endWidget(); ?>
	</div>
    </td>
    <td background="images/admin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="images/admin/mail_leftbg.gif"><img src="images/admin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/admin/buttom_bgs.gif"><img src="images/admin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/admin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
